﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DungeonAndDragonApplication.Controller.Game.UserInformation;

namespace DungeonAndDragonApplication.Controller.Commands
{
    /// <summary>
    /// This game will start a adnd campain as DM or PLayer
    /// </summary>
    class StartGame : ICommand
    {
        private UserType userType;

        public StartGame(UserType ut)
        {
            userType = ut;        
        }

        public bool execute()
        {
           //Start Game
            switch (userType)
            { 
                case UserType.DungeonMaster:
                    Console.WriteLine("Game started as a DM");
                    break;
                case UserType.Player:
                    Console.WriteLine("Game started as Player");
                    break;
                default:
                    throw new SystemException("No user type was defined");
            }
            return true;    
        }
    }
}
